import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';
import 'package:flutter_ui/src/components/Header.dart';
import 'package:flutter_ui/src/components/ListItem.dart';

class HomePage extends StatelessWidget {
  const HomePage({Key key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: Color(0xffeeeeee),
      appBar: Header(title: "首页"),
      body: Column(
        children: <Widget>[
          Card(
            margin: EdgeInsets.only(left: 10, right: 10, top: 10),
            child: Column(
              children: ListTile.divideTiles(context: context, tiles: <Widget>[
                ListItem(
                  title: "颜色",
                  subtitle: "Color",
                  arrow: true,
                  onTap: (){
                    
                  },
                ),
                ListItem(
                  title: "尺寸",
                  subtitle: "Size",
                  arrow: true,
                ),
                ListItem(
                  title: "定位",
                  subtitle: "Flex",
                  arrow: true,
                ),
              ]).toList(),
            ) 
          )
        ],
      ),
    );
  }
}